//
//  IdearCell.m
//  PSYWeiBo
//
//  Created by xiaotian on 16/3/16.
//  Copyright © 2016年 郑亚田. All rights reserved.
//

#import "IdearCell.h"

@implementation IdearCell

/*
 - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
 self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
 if (self) {
 [self addAllViews];
 }
 
 return self;
 }
 */
/*
 - (void)addAllViews {
 self.timeLine = [UILabel new];
 self.timeLine.backgroundColor = [UIColor lightGrayColor];
 [self addSubview:self.timeLine];
 [self.timeLine mas_makeConstraints:^(MASConstraintMaker *make) {
 make.top.equalTo(@0);
 make.bottom.equalTo(@0);
 make.width.equalTo(@2);
 make.left.equalTo(@34);
 }];
 
 self.iconImg = [UIImageView new];
 [self addSubview:self.iconImg];
 [self.iconImg mas_makeConstraints:^(MASConstraintMaker *make) {
 make.centerX.mas_equalTo(self.timeLine.mas_centerX);
 make.top.equalTo(@15);
 make.size.mas_equalTo(CGSizeMake(30, 30));
 }];
 self.iconImg.clipsToBounds = YES;
 self.iconImg.layer.cornerRadius = 15;
 self.iconImg.image = [UIImage imageNamed:@"custom-menu-idear"];
 
 self.msgLab = [UILabel new];
 [self addSubview:self.msgLab];
 [self.msgLab mas_makeConstraints:^(MASConstraintMaker *make) {
 //        make.left.top.bottom.mas_equalTo(self.msgImg);
 make.leading.equalTo(self.iconImg.mas_trailing);
 make.top.equalTo(@10);
 make.bottom.equalTo(@-10);
 }];
 self.msgLab.text = @"testjwohmgkhldsfk;glsagjdlkfs;fk;sfk;lsfldsjlkdjf;lsdjjfe";
 self.msgLab.numberOfLines = 0;
 
 self.msgImg = [UIImageView new];
 [self addSubview:self.msgImg];
 [self.msgImg mas_makeConstraints:^(MASConstraintMaker *make) {
 make.leading.equalTo(self.iconImg.mas_trailing);
 make.top.equalTo(@10);
 make.bottom.equalTo(@-10);
 make.width.equalTo(self.msgLab.mas_width);
 }];
 self.msgImg.image = [UIImage imageNamed:@"alert-left-no-line"];
 }
 */

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
